import { strictEqual } from 'assert';

import { PanelConverter as Self } from './panel';

describe('src/scene/service/converter/panel.ts', () => {
    describe('.convert()', () => {
        it('ok', async () => {
            const self = new Self(null as any, null as any, null as any, null as any);

            Reflect.set(self, 'createNode', () => {
                return 'node';
            });

            Reflect.set(self, 'addChildren', (arg: any) => {
                strictEqual(arg, 'node');
            });

            const res = await self.convert();
            strictEqual(res, 'node');
        });
    });
})